package com.module.report.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.module.report.domain.ReportDevice;
import com.module.report.mapper.ReportDeviceMapper;
import com.module.report.service.IReportDeviceService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 设备上下线记录
 */
@Service
public class ReportDeviceServiceImpl extends ServiceImpl<ReportDeviceMapper, ReportDevice> implements IReportDeviceService {

    /**
     * 根据设备类型统计
     * @param reportDevice
     * @return
     */
    @Override
    public List<ReportDevice> selectTypeChartList(ReportDevice reportDevice) {
        return baseMapper.selectTypeChartList(reportDevice);
    }

    /**
     * 根据在线状态统计
     * @param reportDevice
     * @return
     */
    @Override
    public List<ReportDevice> selectOnlineChartList(ReportDevice reportDevice) {
        return baseMapper.selectOnlineChartList(reportDevice);
    }
}
